package sh.wn36.vehiclemanage.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import sh.wn36.vehiclemanage.entity.Car;
import sh.wn36.vehiclemanage.entity.RepairRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import sh.wn36.vehiclemanage.xzh.RepairInfo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author xk
 * @since 2021-04-26
 */
public interface RepairRecordService extends IService<RepairRecord> {


    IPage<RepairInfo> getList(Page<RepairInfo> page);


    IPage<RepairInfo> getListByCarNo(Page<RepairInfo> page, @Param("text") String text);


    IPage<RepairInfo> getListByUnitName(Page<RepairInfo> page, @Param("text") String text);


    IPage<RepairInfo> getListByRname(Page<RepairInfo> page, @Param("text") String text);



    RepairInfo getDetailById(@Param("text") Integer id);

    List<Map<String,Object>> getTable();

    List<Map<String,Object>> getTableByCarId(Integer id);

}
